﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="admin.ascx.cs" Inherits="Products_Admin" %>
<%@ Register Assembly="Omofor" Namespace="Jungle.Code.ProductManager.WebControls" TagPrefix="OWC" %>



<asp:MultiView ID="Global_Menu" runat="server" ActiveViewIndex=0>
    <asp:View ID="v1" runat="server">
                <strong>
                    <br /><asp:LinkButton ID="btn_AddProduct" runat="server" Text="Добавить товар" PostBackUrl="~/Admin/Modules.aspx?mod=Products&cmd=add" CssClass="category_funcs_text" ></asp:LinkButton>
                    <br /><asp:LinkButton ID="btn_AddType" runat="server" Text="Добавить тип товара" PostBackUrl="~/Admin/Modules.aspx?mod=Products&cmd=addType" CssClass="category_funcs_text" ></asp:LinkButton>
                    <br /><asp:LinkButton ID="btn_ViewListOfProducts" runat="server" Text="Отобразить список активных товаров" PostBackUrl="~/Admin/Modules.aspx?mod=Products&cmd=view" CssClass="category_funcs_text" ></asp:LinkButton>
                    <br /><asp:LinkButton ID="btn_VievListOfHiddenProducts" runat="server" Text="Отобразить список неактивных товаров" PostBackUrl="~/Admin/Modules.aspx?mod=Products&cmd=viewHidden" CssClass="category_funcs_text" ></asp:LinkButton>
                </strong>
            </asp:View>
    <asp:View ID="v2" runat ="server">
                <OWC:ProductsList ID="ListOfData" runat="server" />
            </asp:View>
    <asp:View ID="v3" runat="server">
                <table width="100%" height="100%" cellpadding = "0" cellspacing = "0">
                    <tr>
                        <td width="150px" height="25px"><strong>Название продукта:</strong></td>
                        <td><asp:TextBox ID="txt_ProductTitle" runat="server" /></td>
                    </tr>
                    <tr>
                        <td width="150px"><strong>Описание продукта:</strong></td>
                        <td><asp:TextBox ID="txt_ProductDesc" runat="server" Height="100px" 
                                TextMode="MultiLine" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Каталожный номер:</strong></td>
                        <td><asp:TextBox ID="txt_ProductCatNum" runat="server" Width="150px" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Рыночная цена:</strong></td>
                        <td><asp:TextBox ID="txt_ProductMarketPrice" runat="server" Width="150px" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Цена сайта:</strong></td>
                        <td><asp:TextBox ID="txt_ProductSitePrice" runat="server" Width="150px" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Минимальный заказ (шт.):</strong></td>
                        <td><asp:TextBox ID="txt_ProductMinOrder" runat="server" Width="150px" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Вес (кг.):</strong></td>
                        <td><asp:TextBox ID="txt_ProductWeight" runat="server" Width="150px" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Тип продукта:</strong></td>
                        <td><asp:DropDownList ID="ddl_ProductTypes" runat="server" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Фото:</strong></td>
                        <td><asp:FileUpload ID="fu_Photo" runat="server" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Категория каталога:</strong></td>
                        <td><asp:DropDownList ID="ddl_ProductCatId" runat="server" /></td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px"><strong>Виден в каталоге:</strong></td>
                        <td>
                            <asp:DropDownList ID="ddl_ProductVisible" runat="server" >                                
                                <asp:ListItem>Да</asp:ListItem>
                                <asp:ListItem>Нет</asp:ListItem>
                            </asp:DropDownList>                               
                        </td>
                    </tr>
                    <tr>
                        <td width="150px" height="25px">
                        <br />
                        <asp:Button ID="btn_ProductSaveChanges" runat="server" Text="Сохранить изменения" 
                                OnClick="ProductSaveChanges" Visible="false" />
                                
                        <asp:Button ID="btn_AddNewProduct" runat="server" Text="Добавить продукт" Visible="false" OnClick="ProductAdd" />
                        
                        </td>
                        <td>
                        <asp:Label ID="lbl_ResultAddProduct" runat="server" Text=""></asp:Label>
                        </td>
                        
                        <td>&nbsp;</td>
                    </tr>
                </table>                
    </asp:View>
    <asp:View ID="v4" runat="server">
        <table width="100%" height="100%" cellpadding = "0" cellspacing = "0">
                    <tr>
                        <td width="150px" height="25px"><strong>Название типа продукта:</strong></td>
                        <td><asp:TextBox ID="txt_TypeTitle" runat="server" /></td>
                    </tr>
                    <tr>
                        <td><asp:Button ID="btn_TypeAdd" runat="server" Text="Добавить" Visible="false" OnClick="ProductTypeAdd" /></td>
                        <td><asp:Label ID="lbl_ResultAddType" runat="server"></asp:Label></td>
                    </tr>                    
                </table>                
    </asp:View>
</asp:MultiView>


